<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>用户信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="statics/css/styles.css">
	-->
<link type="text/css" rel="stylesheet" href="statics/css/style.css" />


<script type="text/javascript" src="/EasyBuy/statics/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/EasyBuy/statics/js/menu.js"></script>

<script type="text/javascript" src="/EasyBuy/statics/js/select.js"></script>


<title>尤洪</title>
</head>
<body>
<%@ include file="../../common/header.jsp" %>
<c:if test="${empty list }">
	<%
		String name = (String)application.getAttribute("name");
		request.getRequestDispatcher("../../UserServlet?opr=seleGeRen&name="+name).forward(request, response);
	 %>
</c:if>

	<!--Begin Header Begin-->
	<%@ include file="../../common/backendHeader.jsp" %>
	<!--End Header End-->
	<div class="i_bg bg_color">
		<!--Begin 用户中心 Begin -->
<c:choose>
		<c:when test="${empty applicationScope.type }">
			<% 	request.getRequestDispatcher("../../UserServlet?opr=type&href=Member_User&href1=user").forward(request, response); %>
		</c:when>
		<c:otherwise>
			<c:if test="${applicationScope.type==1 }">
  				<%@ include file="../../common/sideMamber.jsp" %> 
			</c:if>
			<c:if test="${applicationScope.type==0 }">
				<%@ include file="../../common/sideUser.jsp" %> 
			</c:if>
		</c:otherwise>
	 </c:choose>
			<div class="m_right">
				<div class="m_des">
					<table border="0" style="width:870px; line-height:22px;"
						cellspacing="0" cellpadding="0">
						<c:forEach var="i" items="${list }">
						<tr valign="top">
							<td width="115"><img src="/EasyBuy/statics/images/user.jpg" width="90"
								height="90" />
							</td>
							<td>
								<div class="m_user">${i.loginName }</div>
								<p>
									等级：注册用户 <br /> <font color="#ff4e00">您还差 270 积分达到 分红100</font><br />
									上一次登录时间: ${i.last_time }<br /> 
									<c:if test="${i.state==0 }">
									您还没有通过邮件认证 <a href="#"
										style="color:#ff4e00;">点此发送认证邮件</a>
									</c:if>
								</p>
								<div class="m_notice">用户中心公告！</div></td>
						</tr>
						</c:forEach>
					</table>
				</div>

				<div class="mem_t">资产信息</div>
				<table border="0" class="mon_tab"
					style="width:870px; margin-bottom:20px;" cellspacing="0"
					cellpadding="0">
					<c:forEach var="i" items="${list }">
					<tr>
						<td width="33%">用户等级：<span style="color:#555555;">普通会员</span>
						</td>
						<td width="33%">消费金额：<span>￥${i.monetary }元</span>
						</td>
						<td width="33%">返还积分：<span>${i.integral }R</span>
						</td>
					</tr>
					<tr>
						<td>账户余额：<span>￥${i.surplus }元</span></td>
						<td>红包个数：<span style="color:#555555;">3个</span></td>
						<td>红包价值：<span>${usermoney }元</span></td>
					</tr>
					<tr>
						<td colspan="3">订单提醒： <font style="font-family:'宋体';">待付款(<span>0</span>)
								&nbsp; &nbsp; &nbsp; &nbsp; 待收货(<span>2</span>) &nbsp; &nbsp;
								&nbsp; &nbsp; 待评论(<span>1</span>)</font></td>
					</tr>
					</c:forEach>
				</table>

				<div class="mem_t">账号信息</div>
				<table border="0" class="mon_tab"
					style="width:870px; margin-bottom:20px;" cellspacing="0"
					cellpadding="0">
					<c:forEach var="i" items="${list }">
					<tr>
						<td width="40%">用户ID：<span style="color:#555555;">${i.id }</span>
						</td>
						<td width="60%">邀请人：<span style="color:#555555;">无</span>
						</td>
					</tr>
					<tr>
						<td>电&nbsp; &nbsp; 话：<span style="color:#555555;">${i.mobile }</span>
						</td>
						<td>邮&nbsp; &nbsp; 箱：<span style="color:#555555;">${i.email }</span>
						</td>
					</tr>
					<tr>
						<td>身份证号：<span style="color:#555555;">${i.identityCode }</span>
						</td>
						<td>注册时间：<span style="color:#555555;">${i.registration_time }</span>
						</td>
					</tr>
					
					</c:forEach>
					
				</table>
			</div>
		</div>
		<%@ include file="../../common/footer.jsp" %>    <!--引入脚部-->
		
		
<script type="text/javascript" src="/EasyBuy/statics/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$(".user").attr("class","now");
	});
</script>
</body>
</html>
